package javaBase.javaCollection.javaEnumeration;

import java.util.Enumeration;

/**
 * Created by admin on 2017/3/1.
 */
public class TestEnumeration {
    public static  void main(String[] args){
        Enumeration e = new Enumeration() {
            @Override
            public boolean hasMoreElements() {
                return false;
            }

            @Override
            public Object nextElement() {
                return "abc";
            }
        };
        System.out.println(e.nextElement());
        System.out.println(e.nextElement());
        System.out.println(e.nextElement());
        System.out.println(e.nextElement());
        System.out.println();
    }
}
